package com.chainyoung.component_tmperson.ui.mvp.model;

import com.chainyoung.common.integration.IRepositoryManager;
import com.chainyoung.common.mvp.BaseModel;
import com.chainyoung.common.utils.RxUtils;
import com.chainyoung.component_tmperson.api.PersonService;
import com.chainyoung.component_tmperson.ui.mvp.contract.AboutProtocolContact;
import com.chainyoung.component_tmperson.ui.mvp.contract.DebitContractContract;

import java.util.TreeMap;

import javax.inject.Inject;

import io.reactivex.Flowable;

public class DebitContractModel  extends BaseModel implements DebitContractContract.Model {

    @Inject
    DebitContractModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);

    }






    @Override
    public Flowable<String> getDebitContract(TreeMap<String,Object> map) {
        return mRepositoryManager.obtainRetrofitService(PersonService.class)
                .getDebitContract(map)
                .compose(RxUtils.<String>handleResult());
    }
}
